package org.decorator.ex1.expone;

import java.util.Date;

public class MothPrizeDecorator extends Decorator{

	public MothPrizeDecorator(Component c) {
		super(c);
	}
	
	public double calcPrize(String user, Date begin, Date end){
		double money = super.calcPrize(user, begin, end);
		
		double prize = TempDB.mapMothSaleMoney.get(user) * 0.03;
		
		System.out.println(user + " 当月业务奖金 " + prize);
		
		return money + prize;
	}
}
